package com.jz.pay3.design.command;

public class LightOffCommand implements Command{
    String key;
    Receiver receiver;

    public LightOffCommand(String key,Receiver receiver) {
        this.key = key;
        this.receiver = receiver;
    }

    @Override
    public Object getCmd() {
        return key;
    }

    @Override
    public void excute() {
        receiver.excute(key);
    }
}
